import request from '@/utils/request'

// 查询竣工文件列表
export function listCompletion(query) {
  return request({
    url: '/documents/completion/list',
    method: 'get',
    params: query
  })
}


// 查询竣工文件详细
export function getCompletion(id) {
  return request({
    url: '/documents/completion/' + id,
    method: 'get'
  })
}

// 新增竣工文件
export function addCompletion(data) {
  return request({
    url: '/documents/completion',
    method: 'post',
    data: data
  })
}

// 修改竣工文件
export function updateCompletion(data) {
  return request({
    url: '/documents/completion',
    method: 'put',
    data: data
  })
}

// 删除竣工文件
export function delCompletion(id) {
  return request({
    url: '/documents/completion/' + id,
    method: 'delete'
  })
}
